package com.lp.module_lib.network.mvp;

import java.io.Serializable;


/**
 * mode基类  服务器返回字段自己重写修改下  下边是演示
 * 作者：created by LP_TREAM on 2020/11/25 23:39
 * 邮箱：806875201@qq.com
 */
public class BaseModel<T> implements Serializable {
    private String reason;
    private String msg;
    private int error_code;
    private int code;
    private T result;
    private T jokes;
    private T data;

    public BaseModel(int code, String msg) {
        this.error_code = code;
        this.code = code;
        this.reason = msg;
        this.msg = msg;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public T getJokes() {
        return jokes;
    }

    public void setJokes(T jokes) {
        this.jokes = jokes;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseModel{" +
                "reason='" + reason + '\'' +
                ", msg='" + msg + '\'' +
                ", error_code=" + error_code +
                ", code=" + code +
                ", result=" + result +
                ", jokes=" + jokes +
                ", data=" + data +
                '}';
    }
}
